package config;

import autowired.bean.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

/**
 * @author azzhu
 * @create 2020-08-15 09:04:51
 */
@Configuration
public class MyAppConfig {

    @Bean
    @Scope("prototype")
   // @Lazy(value =false)
    public User user() {
        return new User();
    }
}
